import request from '@/utils/request'

// 查询仪器维护记录列表
export function listMaintainLog(query) {
  return request({
    url: '/instrument/maintainLog/list',
    method: 'get',
    params: query
  })
}

// 查询仪器维护记录详细
export function getMaintainLog(id) {
  return request({
    url: '/instrument/maintainLog/' + id,
    method: 'get'
  })
}

// 新增仪器维护记录
export function addMaintainLog(data) {
  return request({
    url: '/instrument/maintainLog',
    method: 'post',
    data: data
  })
}

// 修改仪器维护记录
export function updateMaintainLog(data) {
  return request({
    url: '/instrument/maintainLog',
    method: 'put',
    data: data
  })
}

// 删除仪器维护记录
export function delMaintainLog(id) {
  return request({
    url: '/instrument/maintainLog/' + id,
    method: 'delete'
  })
}

// 导出仪器维护记录
export function exportMaintainLog(query) {
  return request({
    url: '/instrument/maintainLog/export',
    method: 'get',
    params: query
  })
}